home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1994 June: Reference Library / Dev.CD Jun 94.toast / Periodicals / develop / develop Issue 15 / develop 15 code / 3D Interface / Demo3D / UDemo3D.h < prev   
Encoding:
C/C++ Source or Header  |  1993-06-02  |  1.7 KB  |  100 lines  |  [TEXT/MPS ]

  1. /*
  2.     File:        Demo3D.h
  3.  
  4.     Contains:    3D drawing demo program
  5.  
  6.     Written by:    Jamie Osborne
  7.  
  8.     Copyright:    © 1992-1993 by Apple Computer, Inc.
  9.  
  10. */
  11.  
  12. #ifndef __UDEMO3D__
  13. #define __UDEMO3D__
  14.  
  15.  
  16. #ifndef __TYPES__
  17. #include <Types.h>
  18. #endif
  19.  
  20. #ifndef __MACAPPTYPES__
  21. #include <MacAppTypes.h>
  22. #endif
  23.  
  24. #ifndef __UEVENTHANDLER__
  25. #include <UEventHandler.h>
  26. #endif
  27.  
  28. #ifndef __UCCOMMANDHANDLER__
  29. #include <UCommandHandler.h>
  30. #endif
  31.  
  32. #ifndef __UAPPLICATION__
  33. #include <UApplication.h>
  34. #endif
  35.  
  36. #ifndef __UADORNERS__
  37. #include <UAdorners.h>
  38. #endif
  39.  
  40. #ifndef __UVIEW__
  41. #include <UView.h>
  42. #endif
  43.  
  44. #ifndef __UBEHAVIOR__
  45. #include <UBehavior.h>
  46. #endif
  47.  
  48. #ifndef __UMACAPPGLOBALS__
  49. #include <UMacAppGlobals.h>
  50. #endif
  51.  
  52. // • Building Blocks 
  53.  
  54. #ifndef __UDIALOG__
  55. #include <UDialog.h>
  56. #endif
  57.  
  58. #ifndef __UGRIDVIEW__
  59. #include <UGridView.h>
  60. #endif
  61.  
  62. const OSType kSignature = 'DE3D';            // Application signature 
  63. const OSType kFileType = 'DE3D';                // File-type code used for document files
  64.                                                           // created by this application
  65. // CLASS DECLARATIONS
  66.  
  67. class TTestApplication : public TApplication
  68. {
  69. public:
  70.  
  71.     MenuHandle fMenuHandle;
  72.  
  73.     virtual pascal void ITestApplication();
  74.     // Initializes the application and globals. 
  75.  
  76.     virtual pascal TDocument* DoMakeDocument(CommandNumber/*itsCommandNumber*/,
  77.                                                            TFile*            /*itsFile*/ );// override 
  78.  
  79.     virtual pascal void DoMenuCommand(CommandNumber aCommandNumber);// override 
  80.  
  81.     virtual pascal void DoSetupMenus();            // override
  82.  
  83. protected:                                        // the procedures to do the views by procedures!!
  84.     virtual pascal void    MakeDrawingWind();
  85.     virtual pascal void    MakeDrawingProcWind();
  86. };
  87.  
  88.  
  89. class TDemoWindow : public TWindow
  90. {
  91. public:
  92.     virtual pascal void DoEvent(EventNumber eventNumber,
  93.                                      TEventHandler* source,
  94.                                      TEvent* event);
  95. };
  96.  
  97. #endif
  98.  
  99.  
  100.